﻿<!DOCTYPE html>
<html lang="en">
<head th:replace="~{parts/head}">

<!-- page wrapper -->
<body>

    <div class="boxed_wrapper">

        <!-- preloader -->
        <div class="preloader"></div>
        <!-- preloader -->


        <!-- main header -->
        <header class="main-header style-three">

            <!-- header-lower -->
            <div class="header-lower">
                <div class="outer-box clearfix">
                    <div class="left-column">
                        <div class="logo-box">
                            <figure class="logo"><a href="/"><img src="../../images/logo-3.png" alt=""></a></figure>
                        </div>
                        <div th:replace="~{parts/menu-area}">
                        </div>
                        <div class="right-column pull-right">
                            <div th:replace="~{parts/author-box}">
                            </div>
                        </div>
                    </div>

                    <!--sticky Header-->
                    <div class="sticky-header">
                        <div class="auto-container">
                            <div class="outer-box">
                                <div class="logo-box">
                                    <figure class="logo"><a href="/"><img src="../../images/small-logo.png" alt=""></a></figure>
                                </div>
                                <div class="menu-area">
                                    <nav class="main-menu clearfix">
                                        <!--Keep This Empty / Menu will come through Javascript-->
                                    </nav>
                                </div>
                                <!--                        <div class="btn-box"><a href="register-page.html" class="theme-btn-one"><i class="icon-image"></i>Join Now</a></div>-->
                            </div>
                        </div>
                    </div>
        </header>
        <!-- main-header end -->

        <!-- Mobile Menu  -->
        <div class="mobile-menu">
            <div class="menu-backdrop"></div>
            <div class="close-btn"><i class="fas fa-times"></i></div>
            
            <nav class="menu-box">
                <div class="nav-logo"><a href="/"><img src="../../images/logo-2.png" alt="" title=""></a></div>
                <div class="menu-outer"><!--Here Menu Will Come Automatically Via Javascript / Same Menu as in Header--></div>
                <div class="contact-info">
                    <h4>Contact Info</h4>
                    <ul>
                        <li>Chicago 12, Melborne City, USA</li>
                        <li><a href="">+88 01682648101</a></li>
                        <li><a href="mailto:info@example.com">info@example.com</a></li>
                    </ul>
                </div>
                <div class="social-links">
                    <ul class="clearfix">
                        <li><a href="/"><span class="fab fa-twitter"></span></a></li>
                        <li><a href="/"><span class="fab fa-facebook-square"></span></a></li>
                        <li><a href="/"><span class="fab fa-pinterest-p"></span></a></li>
                        <li><a href="/"><span class="fab fa-instagram"></span></a></li>
                        <li><a href="/"><span class="fab fa-youtube"></span></a></li>
                    </ul>
                </div>
            </nav>
        </div><!-- End Mobile Menu -->


        <!--page-title-two-->
        <section class="page-title-two">
            <div class="title-box centred bg-color-2">
                <div class="pattern-layer">
                    <div class="pattern-1" style="background-image: url(../../images/shape/shape-70.png);"></div>
                    <div class="pattern-2" style="background-image: url(../../images/shape/shape-71.png);"></div>
                </div>
                <div class="auto-container">
                    <div class="title">
                        <h1>医生列表</h1>
                    </div>
                </div>
            </div>
            <div class="lower-content">
                <div class="auto-container">
                    <ul class="bread-crumb clearfix">
                        <li><a href="/">主页</a></li>
                        <li><a style="cursor: pointer" onclick="window.history.back(-1);">上一页</a></li>
                        <li>医生列表</li>
                    </ul>
                </div>
            </div>
        </section>
        <!--page-title-two end-->


        <div class="select-field bg-color-3">
            <div class="auto-container">
                <div class="content-box">
                    <div class="form-inner clearfix">
                        <form action="index.html" method="post">
                            <div class="form-group clearfix">
                                <input type="text" name="name" placeholder="搜索：医生姓名" required="">
                                <button><i class="icon-Search"></i></button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>


        <!-- doctors-page-section -->
        <section class="clinic-section doctors-page-section">
            <div class="auto-container">
                <div class="row clearfix">
                    <div class="col-lg-12 col-md-12 col-sm-12 content-side">
                        <div class="item-shorting clearfix">
                            <div class="left-column pull-left">
                                <h3>全部医生</h3>
                            </div>
                        </div>
                        <div class="wrapper grid">
                            <div class="clinic-grid-content grid-item">
                                <div class="row clearfix">
                                    <div class="col-lg-4 col-md-4 col-sm-12 team-block" th:each="item:${doctors}">
                                        <div class="team-block-three">
                                            <div class="inner-box">
                                                <figure class="image-box" style="height: 342px;">
                                                    <img th:if="${item.icon ne null}" th:src="${item.icon}" alt="">
                                                    <img th:if="${item.icon eq null}" src="../../images/team/team-5.jpg" alt="">
                                                    <a><i class="far fa-heart"></i></a>
                                                </figure>
                                                <div class="lower-content">
                                                    <ul class="name-box clearfix">
                                                        <li class="name"><h3><a th:href="@{'/doctors-details?docId='+${item.id}}" th:text="${item.name}">Dr. Julia Jhones</a></h3></li>
                                                        <li><i class="icon-Trust-1"></i></li>
                                                        <li><i class="icon-Trust-2"></i></li>
                                                    </ul>
                                                    <span class="designation" th:text="${item.age+'岁'}">MBBS, MS - General Surgery, MCh</span>
                                                    <div class="rating-box clearfix">
                                                        <ul class="rating clearfix" th:with="level=${item.avgLevel}">
                                                            <th:block th:if="${level > 0}" th:each="index:${#numbers.sequence(1, level)}">
                                                                <li><i class="icon-Star"></i></li>
                                                            </th:block>
                                                            <th:block th:if="${level < 5}" th:each="index:${#numbers.sequence(1, 5-level)}">
                                                                <li class="light"><i class="icon-Star"></i></li>
                                                            </th:block>
                                                            <li><a th:text="${'('+item.reviewCount+')'}">(17)</a></li>
                                                        </ul>
                                                        <!--                                                <div class="link"><a href="doctors-details.html">24/7 Available</a></div>-->
                                                    </div>
                                                    <div class="location-box">
                                                        <p><i class="fas fa-phone"></i><span th:text="${item.phone}">G87P, Birmingham, UK</span></p>
                                                    </div>
                                                    <div class="lower-box clearfix">
<!--                                                        <span class="text">24/7 Available</span>-->
                                                        <a th:href="@{'/doctors-details?docId='+${item.id}}">查看信息</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- doctors-page-section end -->


        <!-- agent-section -->
        <section class="agent-section">
            <div class="auto-container">
                <div class="inner-container bg-color-2">
                    <div th:replace="~{parts/agent-section}"></div>
                </div>
            </div>
        </section>
        <!-- agent-section -->


        <!-- main-footer -->
        <div th:replace="~{parts/main-footer}"></div>
        <!-- main-footer end -->


        <!--Scroll to top-->
        <button class="scroll-top scroll-to-target" data-target="html" onclick='location.href=("/message?targetId=6")'>
            <img src="../../images/robot-2.png">
        </button>
    </div>

    <script th:replace="~{parts/js}"></script>
    <script>
        $('#doc_tab').addClass("current");
    </script>

</body><!-- End of .page_wrapper -->
</html>
